﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Backend/Backend.Master" Inherits="System.Web.Mvc.ViewPage<IntroduceCompany.Language>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	LanguageEdit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<!-- Begin one column tab content window -->
    <div class="onecolumn">
        <div class="header">
            <span>Chỉnh Sửa Ngôn Ngữ</span>
            <div class="switchbutton">
                <a href="<%= Url.Action("LanguageCreate", "Language") %>" class="button">Thêm mới</a>
                <a href="<%= Url.Action("LanguageList", "Language") %>" class="button">Danh sách</a>
            </div>
        </div><br class="clear" />
        <div class="content">
            <% using (Html.BeginForm("LanguageEdit", "Language", FormMethod.Post, new { enctype = "multipart/form-data" }))
               {%>
                <%= Html.AntiForgeryToken(IntroduceCompany.Util.AntiKey.EditSalt)%>
                <%= Html.ValidationSummary(true) %>
            <div class="display-label error">
                <div class="errorcontent">
                    <p><%= Html.ValidationMessage("NoticePage")%></p>
                    <p><%= Html.ValidationMessageFor(model => model.LanguageID) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.LanguageName) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.LanguageLocation) %></p>
                </div>
            </div>
            <div>
                <div class="editor_left">
                    <label>Mã ngôn ngữ:</label><br />
                    <%= Html.TextBoxFor(model => model.LanguageID, new { Readonly = "readonly" })%>
                </div>
            </div><br class="clear"/><br />
            <div>
                <div class="editor_left">
                    <label>Tên ngôn ngữ:</label><br />
                    <%= Html.TextBoxFor(model => model.LanguageName, new { maxlength = "50" })%>
                </div>
            </div><br class="clear"/><br />
            <div>
                <div class="editor_left">
                    <label>Vị trí hiển thị:</label><br />
                    <%= Html.TextBoxFor(model => model.LanguageLocation, new { maxlength = "2" })%>
                </div>
            </div><br class="clear"/><br />
            <div>
                <div class="editor_left">
                    <label>Cờ biểu tượng:</label><br />
                    <input name="uploadFile" id="uploadFile" type="file" />
                </div>
            </div><br class="clear"/><br />

            <%= Html.HiddenFor(model => model.FlagImage)%>
            <p>
                <input type="submit" value="Lưu" />
                <a href="<%= Url.Action("LanguageEdit", "Language", new { languageID = Model.LanguageID}) %>" class="buttonform">Làm lại</a>
            </p>
        <% } %>
        </div>
    </div>


</asp:Content>

